home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / interfac / mod.000 / scripts / __Packages / mx / controls / Button.as next >
Encoding:
Text File  |  2010-11-09  |  1.8 KB  |  65 lines

  1. if(!_global.mx)
  2. {
  3.    _global.mx = new Object();
  4. }
  5. §§pop();
  6. if(!_global.mx.controls)
  7. {
  8.    _global.mx.controls = new Object();
  9. }
  10. §§pop();
  11. if(!_global.mx.controls.Button)
  12. {
  13.    var _loc1_ = null;
  14.    mx.controls.Button = _loc1_ = function()
  15.    {
  16.       super();
  17.    };
  18.    mx.controls.Button.prototype = new mx.controls.SimpleButton().init = function init(Void)
  19.    {
  20.       super.init();
  21.    };
  22.    mx.controls.Button.prototype = new mx.controls.SimpleButton().draw = function draw()
  23.    {
  24.       if(this.initializing)
  25.       {
  26.          this.labelPath.visible = true;
  27.       }
  28.       super.draw();
  29.       if(this.initIcon != undefined)
  30.       {
  31.          this._setIcon(this.initIcon);
  32.       }
  33.       delete this.initIcon;
  34.    };
  35.    mx.controls.Button.prototype = new mx.controls.SimpleButton().onRelease = function onRelease(Void)
  36.    {
  37.       super.onRelease();
  38.    };
  39.    mx.controls.Button.prototype = new mx.controls.SimpleButton().createChildren = function createChildren(Void)
  40.    {
  41.       super.createChildren();
  42.    };
  43.    mx.controls.Button.prototype = new mx.controls.SimpleButton().setSkin = function setSkin(tag, linkageName, initobj)
  44.    {
  45.       return super.setSkin(tag,linkageName,initobj);
  46.    };
  47.    mx.controls.Button.prototype = new mx.controls.SimpleButton().viewSkin = function viewSkin(varName)
  48.    {
  49.       var _loc3_ = !this.getState() ? "false" : "true";
  50.       _loc3_ += !this.enabled ? "disabled" : this.phase;
  51.       super.viewSkin(varName,{styleName:this,borderStyle:_loc3_});
  52.    };
  53.    mx.controls.Button.prototype = new mx.controls.SimpleButton().invalidateStyle = function invalidateStyle(c)
  54.    {
  55.       this.labelPath.invalidateStyle(c);
  56.       super.invalidateStyle(c);
  57.    };
  58.    ┬º┬ºpush(mx.controls.Button.prototype = new mx.controls.SimpleButton());
  59.    ┬º┬ºpush("setColor");
  60. }
  61. else
  62. {
  63.    ┬º┬ºpop();
  64. }
  65.